package com.example.designmode.demos.responsibilityChain;

public abstract class HandleRequest { //抽象处理角色
    public int maxDay;//能处理的最大天数
    public HandleRequest nextPerson; //更高级的领导
    public HandleRequest(HandleRequest handleRequest,int maxDay){
        this.nextPerson=handleRequest;
        this.maxDay=maxDay;
    }
    public abstract void handleLeaveRequest(LeaveRequest leaveRequest);
}